﻿using System;
using System.Configuration;
using System.Threading;
using System.Web;
using System.Web.Mvc;
using System.Web.Security;
using Yonkly.Models;
using Yonkly.Utility;

namespace Yonkly.Fitlers
{
    public class LogFilter : ActionFilterAttribute
    {
        public override void OnActionExecuted(ActionExecutedContext filterContext)
        {


            if (filterContext.Exception != null && filterContext.Exception.GetType() != typeof(ThreadAbortException))
            {
                Utils.Log(filterContext.Exception);
            }
        }
    }

    //public class FlashUploadFilter : ActionFilterAttribute
    //{

    //    public override void OnActionExecuting(ActionExecutingContext filterContext)
    //    {
    //        //Utils.RestoreCookies(filterContext.HttpContext);
    //    }

        
    //}
}
